<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    .click_box{
      width: 200px;
      height: 200px;
      background-color: pink;
      text-align: center;
      line-height: 200px;
    }
  </style>
  <body>
    <div id="app">
      <h1>差值表达式</h1>
      <h3>{{ msg }}</h3>
      <h3>{{ count }}</h3>
      <h1>v-text</h1>
      <div v-text="msg"></div>
      <h1>v-model</h1>
      <input type="text" v-model="msg" />
      <input type="text" v-model="count" />
      <h1>v-html</h1>
      <p v-html="htmlText"></p>
      <h1>v-on</h1>
      <div class="click_box" v-on:click='clickHandler'>点击</div>
      <div class="click_box" @mouseenter='clickHandler'>点击</div>
      <strong>
    </div>
    <script src="./js/dep.js"></script>
    <script src="./js/watcher.js"></script>
    <script src="./js/compolier.js"></script>
    <script src="./js/obsever.js"></script>
    <script src="./js/vue.js"></script>

    <script>
      let vm = new Vue({
        el: '#app',
        data: {
          htmlText:'<strong>加粗</strong>的文本',
          msg: 'Hello Vue',
          count: 100,
          person: { name: 'zs' },
        },
        methods:{
          clickHandler(){
            console.log('点击');
          }
        }
      })
    </script>
  </body>
</html>
